home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Frame Negotiation < prev    next >
Encoding:
Internet Message Format  |  1996-07-18  |  2.4 KB  |  [TEXT/ttxt]

  1. Subject:     Frame Negotiation
  2. Sent:        7/8/96 2:21 PM
  3. Received:    7/8/96 2:41 PM
  4. From:        The3Furies@aol.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. I have been reading the docs and scouring the source code for the past 
  9. several days to try to get some handle on frame negotiation, and have not 
  10. made much of any progress.
  11.  
  12. Are there any code examples around which demonstrate a part which 
  13. requests its frame shape, and a container that can process the requests?  
  14. The majority of the info on frame negotiation seems to be in the OpenDoc 
  15. docs and the procedure in ODF seems to be significantly different (ie the 
  16. proxies get involved, the RequestFrameShape() returns boolean instead of 
  17. ODShape, etc..)
  18.  
  19. Some specific questions that I think are related:
  20.  
  21. What exactly does a part call when it wants to change its shape?  If it 
  22. should call the frames RequestFrameShape, do I override the method or 
  23. just call it with the shape I want?
  24.  
  25. What are the Used and Active shapes.  Do you set one of these, and the 
  26. rest of the frame negotiation is automatic (assuming you accect what you 
  27. get)?  AdjustActiveShape() and AdjustUsedShape() in FW_CFrame seem to 
  28. imply that I should do something there, but what?  The ODF docs metion 
  29. that I probably want to override them, but doesn't say why or what to do 
  30. in the methods.
  31.  
  32.  
  33. If anyone has the time, desire, sympathy etc to help me out, here's what 
  34. I'm trying to do:
  35. I have a container very similar to ODFTable, and the embedded parts need 
  36. to change their height programatically (ie expand and collapse like 
  37. folders in the finder).  I want the embedded parts to change their 
  38. height, and the contining table to change the row height to accomodate 
  39. the new part height.  Shifting the other embedded frames should be no 
  40. problem since ODFTable does this when grid lines are dragged anyway.  I 
  41. need something more than "just call RequestFrameShape()", since I have 
  42. been unable to uncover any info on how to do this.  If there is sample 
  43. code which I have missed, pointing me there would help.
  44.  
  45. Thanks!
  46. Chris Colapietro
  47.  
  48.  
  49.  
  50.  
  51.  
  52. ========================================================================
  53. Chris Colapietro                               email: the3furies@aol.com
  54. President                     
  55. The 3 Furies Software, Inc.                        voice: (804) 698-6859
  56. ========================================================================
  57.  
  58.  
  59.